home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ada / gnat1792.zip / gnat179b / examples / makefile.dep < prev    next >
Makefile  |  1994-05-13  |  2KB  |  46 lines

  1. #-----------------------------------------------------------------------------
  2. #                               EXAMPLES  Makefile
  3. #-----------------------------------------------------------------------------
  4. #
  5. # Intructions to Add a new example
  6. #
  7. #   1. Update the variable LIST_EXEC with the new target (executable name).
  8. #      Do not include any extensions; instead append $e to this name.
  9. #
  10. #   2. Add a new entry in the dependencies with the following format :
  11. #       name_exec_DEP= {list of .o files needed to build the executable -
  12. #         use $o as the extension instead of .o or .obj}
  13. #       name_exec$e : name_exec.$o $(name_exec_DEP)
  14. #-----------------------------------------------------------------------------
  15.  
  16. # Put here the final target of each test case.
  17. # it can be a '.o' file if the test is just a compilation one
  18. # otherwise it is the final executable
  19. LIST_COMPILE_ONLY =
  20. LIST_EXEC = hello$e text_io_example$e use_of_import$e tgef$e tef$e \
  21. demo1$e demo2$e
  22.  
  23. #-----------------------------------------------------------------------------
  24. # Dependencies
  25.  
  26. hello_DEP=
  27. hello$e : hello.$o $(hello_DEP)
  28.  
  29. demo1_DEP=
  30. demo1$e : demo1.$o  instr.$o $(demo1_DEP)
  31.  
  32. demo2_DEP=
  33. demo2$e : demo2.$o instr.$o instr-child.$o $(demo2_DEP)
  34.  
  35. use_of_import_DEP = imported_function.$o
  36. use_of_import$e : use_of_import.$o $(use_of_import_DEP)
  37.  
  38. text_io_example_DEP =
  39. text_io_example$e : text_io_example.$o $(text_io_example_DEP)
  40.  
  41. tgef_DEP =
  42. tgef$e : tgef.$o $(tgef_DEP)
  43.  
  44. tef_DEP =
  45. tef$e : tef.$o $(tef_DEP)
  46.